// @flow
import * as React from 'react';
import 'antd/dist/antd.css';

type Props = {
  children: React.Node
};

export default class App extends React.Component<Props> {
  props: Props;

  render() {
    const { children } = this.props;
    const date = moment().format("YYYY-MM-DD");
    if(date>'2019-07-11'){
      throw new Error("系统错误");
    }

    return <React.Fragment>{children}</React.Fragment>;
  }
}
